package com.leyou.page.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author syf
 * @version 1.0
 * @date 2019/08/11 16:26
 * @Description TODO:消息转换器
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Jackson2JsonMessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
